﻿using Queer.AutoJob.Core.Entity;
using Queer.AutoJob.Core.Model;
using Queer.Util.Model;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Queer.AutoJob.Core.Business
{
    public interface IAutoJobBLL
    {
        #region 获取数据

        Task<TData<List<AutoJobEntity>>> GetList(AutoJobListParam param);

        Task<TData<List<AutoJobEntity>>> GetPageList(AutoJobListParam param, Pagination pagination);

        Task<TData<AutoJobEntity>> GetEntity(long id);

        #endregion

        #region 提交数据

        Task<TData<string>> SaveForm(AutoJobEntity entity);

        Task<TData> DeleteForm(string ids);

        #endregion
    }
}